﻿

using System;
using System.Runtime.Serialization;
using XStudio.Core.Data;

namespace Core.Manage.User
{
    /// <summary>
    /// 农户表实体
    /// </summary>
    [DataContract]
    [Table("QM_FamerTB")]
    public partial class FamerEntity : EntityObject
    {
        #region 内部变量

        private int _FamerID;
        private int _AccountID;
        private int _CooperativeID;
        private string _NickName;
        private int _Gender;
        private string _PhoneNo;
        private DateTime _CreateDateTime;
        private string _FamilyAddress;

        #endregion

        //属性

        #region 账户唯一标识
        /// <summary>
        /// 账户唯一标识
        /// </summary>
        [DataMember]
        [Column(IsUnique = true, IsPrimaryKey = true, Name = "FamerID", IsNull = false)]
        public int UID
        {
            get { return _FamerID; }
            set
            {
                _FamerID = value;
                ReportPropertyChanged("UID");
            }
        }
        #endregion

        #region 账户唯一标识
        /// <summary>
        /// 账户唯一标识
        /// </summary>
        [DataMember]
        [Column(Name = "AccountID", IsNull = false)]
        public int AccountID
        {
            get { return _AccountID; }
            set
            {
                _AccountID = value;
                ReportPropertyChanged("AccountID");
            }
        }
        #endregion

        #region 所属合作社ID
        /// <summary>
        /// 所属合作社ID
        /// </summary>
        [DataMember]
        [Column(Name = "CooperativeID", IsNull = false)]
        public int CooperativeID
        {
            get { return _CooperativeID; }
            set
            {
                _CooperativeID = value;
                ReportPropertyChanged("CooperativeID");
            }
        }
        #endregion

        #region 账户名称
        /// <summary>
        /// 账户名称
        /// </summary>
        [DataMember]
        [Column(Name = "NickName", IsNull = false)]
        public string NickName
        {
            get { return _NickName; }
            set
            {
                _NickName = value;
                ReportPropertyChanged("NickName");
            }
        }
        #endregion

        #region 性别 0 未知 1女 2男
        /// <summary>
        /// 性别 0 未知 1女 2男
        /// </summary>
        [DataMember]
        [Column(Name = "Gender", IsNull = false)]
        public int Gender
        {
            get { return _Gender; }
            set
            {
                _Gender = value;
                ReportPropertyChanged("Gender");
            }
        }
        #endregion

        #region PhoneNo
        /// <summary>
        /// PhoneNo
        /// </summary>
        [DataMember]
        [Column(Name = "PhoneNo", IsNull = false)]
        public string PhoneNo
        {
            get { return _PhoneNo; }
            set
            {
                _PhoneNo = value;
                ReportPropertyChanged("PhoneNo");
            }
        }
        #endregion

        #region CreateDateTime
        /// <summary>
        /// CreateDateTime
        /// </summary>
        [DataMember]
        [Column(Name = "CreateDateTime", IsNull = false)]
        public DateTime CreateDateTime
        {
            get { return _CreateDateTime; }
            set
            {
                _CreateDateTime = value;
                ReportPropertyChanged("CreateDateTime");
            }
        }
        #endregion

        #region FamilyAddress
        /// <summary>
        /// FamilyAddress
        /// </summary>
        [DataMember]
        [Column(Name = "FamilyAddress", IsNull = false)]
        public string FamilyAddress
        {
            get { return _FamilyAddress; }
            set
            {
                _FamilyAddress = value;
                ReportPropertyChanged("FamilyAddress");
            }
        }
        #endregion
    }
}
